{extend name="../../common/view/public/base" /}

{block name="title"}系统{/block}

{block name="head"}<script type="text/javascript">
CONFIG['TYPE'] = 'state';
CONFIG['PAGE_SIZE'] = CONFIG['TOTAL'] = {$Total};
CONFIG['LIST'] = window.location;
</script>{/block}

{block name="main"}
<div class="tool">
  <div class="row1">
    <!--<h2>SMTP服务器</h2>-->

    <ul class="tab">
      {if condition="isPermission('index')"}<li><a href="{:url('/'.parse_name(request()->controller()).'/index')}">SMTP服务器</a></li>{/if}
      {if condition="isPermission('state')"}<li class="active"><a href="{:url('/'.parse_name(request()->controller()).'/state')}">运行状态</a></li>{/if}
    </ul>

    <p class="clear"></p>
  </div>
</div>

<div class="list">
  {if condition="$Total>0"}
  <table>
    <thead><tr class="row1"><th style="width:120px;">时间</th><th style="width:140px;">SMTP服务器</th><th style="width:80px;">SMTP端口</th><th style="width:180px;">发件人邮箱</th><th style="width:180px;">发件人名称</th></tr></thead>
    <tbody class="items"></tbody>
  </table>

  <div class="pagination"><ul></ul></div>
  {else/}
  <p class="nothing"></p>
  {/if}
</div>
{/block}

{block name="right"}
<div class="right">
  <h3>温馨提示 <span class="iconfont icon-fold"></span></h3>
  <ul>
    <li>以红色显示的表示当前运行中的服务器。</li>
  </ul>

  <span class="iconfont icon-expand color"></span>
</div>
{/block}